
/********************************************************************************
Documentation file for stata do-files and datasets corresponding to the paper titled: "Corruption in Cyclone Relief and Reconstruction: Evidence from a Public Fund Distribution in Bangladesh"
By Shaikh Eskander, Asad Islam, and Mustafa Kamal 

September 28, 2025

********************************************************************************/

/* Code for generating risk and network variables */



// "Risk" variable 
		gen risk=preference<4 // 1 if risk-averse, 0 if not 
		replace risk=. if preference==.
	lab var risk "1 if risk-averse, 0 if not"

	
	
	
// Political connections
			global x1 net1_10 net2_10 net3_10 net4_10 net5_10 net6_10
			global x2 net1_12 net2_12 net3_12 net4_12 net5_12 net6_12
		gen connect1=0 // Connections 2012
		foreach X of varlist $x1 {
			replace connect1=connect1+1 if `X'==1
		}
		gen connect1_10=0 // Connections 2010 
		foreach X of varlist $x2 {
			replace connect1_10=connect1_10+1 if `X'==1
		}
		
		
	gen network12=connect1/6
	gen network10=connect1_10/6
	gen Dnetwork=network12-network10
